package com.cq.teacher.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cq.teacher.mapper.TeacherDailyAbnormalMapper;
import com.cq.teacher.domain.TeacherDailyAbnormal;
import com.cq.teacher.service.ITeacherDailyAbnormalService;

/**
 * 日报异常Service业务层处理
 * 
 * @author cq
 * @date 2024-01-06
 */
@Service
public class TeacherDailyAbnormalServiceImpl implements ITeacherDailyAbnormalService 
{
    @Autowired
    private TeacherDailyAbnormalMapper teacherDailyAbnormalMapper;

    /**
     * 查询日报异常
     * 
     * @param id 日报异常主键
     * @return 日报异常
     */
    @Override
    public TeacherDailyAbnormal selectTeacherDailyAbnormalById(Long id)
    {
        return teacherDailyAbnormalMapper.selectTeacherDailyAbnormalById(id);
    }

    /**
     * 查询日报异常列表
     * 
     * @param teacherDailyAbnormal 日报异常
     * @return 日报异常
     */
    @Override
    public List<TeacherDailyAbnormal> selectTeacherDailyAbnormalList(TeacherDailyAbnormal teacherDailyAbnormal)
    {
        return teacherDailyAbnormalMapper.selectTeacherDailyAbnormalList(teacherDailyAbnormal);
    }

    /**
     * 新增日报异常
     * 
     * @param teacherDailyAbnormal 日报异常
     * @return 结果
     */
    @Override
    public int insertTeacherDailyAbnormal(TeacherDailyAbnormal teacherDailyAbnormal)
    {
        return teacherDailyAbnormalMapper.insertTeacherDailyAbnormal(teacherDailyAbnormal);
    }

    /**
     * 修改日报异常
     * 
     * @param teacherDailyAbnormal 日报异常
     * @return 结果
     */
    @Override
    public int updateTeacherDailyAbnormal(TeacherDailyAbnormal teacherDailyAbnormal)
    {
        return teacherDailyAbnormalMapper.updateTeacherDailyAbnormal(teacherDailyAbnormal);
    }

    /**
     * 批量删除日报异常
     * 
     * @param ids 需要删除的日报异常主键
     * @return 结果
     */
    @Override
    public int deleteTeacherDailyAbnormalByIds(Long[] ids)
    {
        return teacherDailyAbnormalMapper.deleteTeacherDailyAbnormalByIds(ids);
    }

    /**
     * 删除日报异常信息
     * 
     * @param id 日报异常主键
     * @return 结果
     */
    @Override
    public int deleteTeacherDailyAbnormalById(Long id)
    {
        return teacherDailyAbnormalMapper.deleteTeacherDailyAbnormalById(id);
    }
}
